import { network } from '@/utils';
import { TableListParams, StatusParams } from './data';

import { partner } from '../../../../../config/Apis';

export async function queryPermissionList(params: TableListParams) {
  params._content_type = 'json';
  return network.get(partner.withdraw_perm_index, {
    params,
  });
}

export async function changePermissionStatus(params: StatusParams) {
  return network.get(partner.withdraw_perm_toggle, {
    params,
  });
}
